package com.qq5194102.simpleskills.listener;

import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;

/**
 * Created by 5194102 on 2025/7/13.
 *  监听玩家退出游戏
 */
public class PlayerJoinListener implements Listener {
    @EventHandler
    public void onPlayerJoin(PlayerJoinEvent event) {
        // 获取玩家
        org.bukkit.entity.Player player = event.getPlayer();
        // 获取玩家名称
        String playerName = player.getName();
        // 获取玩家UUID
        String playerUUID = player.getUniqueId().toString();
        // 获取玩家IP
        String playerIP = player.getAddress().getHostString();

    }
}
